package dao.mapper;

import org.apache.ibatis.annotations.Param;
import vo.CartLine;

import java.util.List;

public interface CartLineMapper {
    void addCartLine(CartLine cartLine);
    List<CartLine> selectCartLineByCartId(int cartId);
    List<CartLine> selectCartLineByBookId(int bookId);
    void update(@Param("cartId") int cartId, @Param("bookId") int bookId, @Param("quanlity") int quanlity);
    CartLine selectCartLine(@Param("cartId") int cartId,@Param("bookId") int bookId);
    void delCartLine(@Param("cartId") int cartId,@Param("bookId") int bookId);
    CartLine selectCartLineById(int id);
    void delCartLineById(int id);
}
